package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcAirportMapper;
import com.ktgj.other.domain.RcAirport;
import com.ktgj.other.service.IRcAirportService;

/**
 * 专车机场Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcAirportServiceImpl implements IRcAirportService 
{
    @Autowired
    private RcAirportMapper rcAirportMapper;

    /**
     * 查询专车机场
     * 
     * @param airportcode 专车机场ID
     * @return 专车机场
     */
    @Override
    public RcAirport selectRcAirportById(String airportcode)
    {
        return rcAirportMapper.selectRcAirportById(airportcode);
    }

    /**
     * 查询专车机场列表
     * 
     * @param rcAirport 专车机场
     * @return 专车机场
     */
    @Override
    public List<RcAirport> selectRcAirportList(RcAirport rcAirport)
    {
        return rcAirportMapper.selectRcAirportList(rcAirport);
    }

    /**
     * 新增专车机场
     * 
     * @param rcAirport 专车机场
     * @return 结果
     */
    @Override
    public int insertRcAirport(RcAirport rcAirport)
    {
        return rcAirportMapper.insertRcAirport(rcAirport);
    }

    /**
     * 修改专车机场
     * 
     * @param rcAirport 专车机场
     * @return 结果
     */
    @Override
    public int updateRcAirport(RcAirport rcAirport)
    {
        return rcAirportMapper.updateRcAirport(rcAirport);
    }

    /**
     * 批量删除专车机场
     * 
     * @param airportcodes 需要删除的专车机场ID
     * @return 结果
     */
    @Override
    public int deleteRcAirportByIds(String[] airportcodes)
    {
        return rcAirportMapper.deleteRcAirportByIds(airportcodes);
    }

    /**
     * 删除专车机场信息
     * 
     * @param airportcode 专车机场ID
     * @return 结果
     */
    @Override
    public int deleteRcAirportById(String airportcode)
    {
        return rcAirportMapper.deleteRcAirportById(airportcode);
    }
}
